﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeFile="MyFavourite.aspx.cs" Inherits="Member_MyFavourite" Title="无标题页" %>

<%@ Register Assembly="GoShopping.Components" Namespace="BaseText" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .ord_tle
    {
	    background-color: #FFFFD5; 
	    height:30px; 
	    font-weight:600 ; 
	    font-size:10pt; 
	    color:#CC6600; 
	    border-bottom-style:solid; 
	    border-width:1px; 
	    border-color:#CCCC99; 
	    vertical-align:middle; 
	    text-align:left; 
	    padding-left:10px;
    }

    .ord_content
    {
     vertical-align:top;
     padding-top:10px;	
    
    }
    .ord_prts
    {
      width:810px;
     
      border-style:solid; 
      border-width:1px; 
      border-color:#CCCC99;
 	
    }

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0"  width="819px" cellspacing="0" style=" font-size:9pt;">
       <tr>
         <td>
             <table class="ord_prts" >
                <tr>
                  <td class="ord_tle">
                    我的收藏夹
                  </td>
                </tr>
                <tr>
                     <td class="ord_content">
                         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                         <ContentTemplate>                        
                        <asp:ListView ID="lvFavourite" runat="server" onitemcommand="lvFavourite_ItemCommand" onitemdatabound="lvFavourite_ItemDataBound" onpagepropertieschanging="lvFavourite_PagePropertiesChanging">
                        <LayoutTemplate>
                            <table cellpadding="0" cellspacing="0" style="width:700px ; vertical-align:text-top; font-size:9pt;">
                                <thead>
                                    <td style="width:300px; ">商品名称</td>
                                    <td style="width:200px; ">单价</td>
                                    <td style="width:200px; ">操作</td>
                                </thead>
                                <tbody id="itemPlaceholder" runat="server">
                                </tbody>
                                <tfoot>
                                    <tr>
                                    <td style=" font-size:9pt;"></td>
                                    <td>
                                    </td>
                                    <td>  
                                    </td>
                                    <td>
                                    </td>
                                    </tr>
                                    <tr><td></td><td></td>
                                    <td>
                                        <asp:DataPager ID="DataPager1" runat="server">
                                        </asp:DataPager>
                                    </td>
                                    <td align="left" style="width:100px">
                                        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="ConBuy">继续购物</asp:LinkButton>
                                    </td>
                                    </tr>
                                </tfoot>
                            </table>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <tr>
                            <td>
                              <%--<asp:LinkButton ID="btnPrdtName" runat="server" CommandArgument='<%# Eval("ItemId") %>' CommandName="Prdt" Text='<%# Eval("ItemName") %>'></asp:LinkButton>--%>
                                <asp:HyperLink ID="hlPrdtName" NavigateUrl='<%# "~/CommonProducts.aspx?prdtId="+Eval("ItemId") %>' runat="server" Text='<%# Eval("ItemName") %>'></asp:HyperLink>
                            </td>
                            <td>
                              <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("ItemPrice") %>'></asp:Label>
                            </td>
                            <td>
                              <asp:LinkButton ID="btnBuy" runat="server" CommandArgument='<%# Eval("ItemId") %>' CommandName="PrdtBuy" >购买</asp:LinkButton><br />
                              <asp:LinkButton ID="btnDel" runat="server" CommandArgument='<%# Eval("ItemId") %>' CommandName="PrdtDel" >删除</asp:LinkButton>
                            </td>
                            </tr>
                        </ItemTemplate>
                        <EmptyDataTemplate>
                            <table class="ord_content" >
                                <thead>
                                <td style="width:300px">商品名称</td>
                                <td style="width:200px">单价</td>
                                <td style="width:200px">操作</td>
                                </thead>
                                <tbody>
                                <tr>
                                <td style=" vertical-align:top; padding-top:10px; ">您的收藏夹中没有物品！</td>
                                </tr>
                                </tbody>
                            </table>
                        </EmptyDataTemplate>
                        </asp:ListView>
                        </ContentTemplate>
                      </asp:UpdatePanel>
                 </td>
            </tr>
      </table>
         </td>
      </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content_rightarea" Runat="Server">
</asp:Content>

